#include<stdio.h>
#define N 4
#define Y(n) ((N+2)*n)
int main()
{
	int z = 0;
	z = 2 * (N + Y(5 + 1));
	printf("%d\n", z);
	return 0;
}